import { createStore, combineReducers, applyMiddleware } from 'redux';
import state from './state';
import reducer from './reducers/reducer';

//middlewares
import thunk from 'redux-thunk';
import { logger } from './middlewares';

let createStoreWithMiddleware = applyMiddleware(thunk, logger)(createStore);

let store = createStoreWithMiddleware(reducer);

export default store;